package com.cgbl.cg.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.cgbl.cg.R

class CityAdapter : BaseQuickAdapter<String, BaseViewHolder>(R.layout.app_item_city) {

    var isVisibleRightIcon = true

    override fun convert(holder: BaseViewHolder, item: String) {
        holder.setText(R.id.tv_job_name, item)
        holder.setVisible(R.id.iv_right, isVisibleRightIcon)
    }

    fun setIsVisibleRightIcon(isVisibleRightIcon: Boolean) {
        this.isVisibleRightIcon = isVisibleRightIcon
    }
}